package com.paipai.dto;


import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;

//每一条竞价信息
public class Auction {
    /***
     * 竞价id
     */
    private Long id;

    /**
     * 场次id
     */

    private Long roundId;

    /**
     * 每次出价人id
     */

    private Long buyerId;

    /**
     * 出价
     */

    private BigDecimal offerPrice;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取场次id
     *
     * @return saleroom_id - 场次id
     */
    public Long getRoundId() {
        return roundId;
    }

    /**
     * 设置场次id
     *
     * @param roundId 场次id
     */
    public void setRoundId(Long roundId) {
        this.roundId = roundId;
    }

    /**
     * 获取每次出价人id
     *
     * @return buyer_id - 每次出价人id
     */
    public Long getBuyerId() {
        return buyerId;
    }

    /**
     * 设置每次出价人id
     *
     * @param buyerId 每次出价人id
     */
    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    /**
     * 获取出价
     *
     * @return offer_price - 出价
     */
    public BigDecimal getOfferPrice() {
        return offerPrice;
    }

    /**
     * 设置出价
     *
     * @param offerPrice 出价
     */
    public void setOfferPrice(BigDecimal offerPrice) {
        this.offerPrice = offerPrice;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Auction{" +
                "id=" + id +
                ", roundId=" + roundId +
                ", buyerId=" + buyerId +
                ", offerPrice=" + offerPrice +
                ", createTime=" + createTime +
                '}';
    }
}